package com.wkbb.common.enums;


/**
 * @author luowenyan
 */

public enum LoginOriginTypeEnum {

    /**来源(1登录 2绑定)*/
    LOGIN(1,"登录"),
    BIND(2,"绑定");

    private LoginOriginTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (LoginOriginTypeEnum sexTypeEnum : LoginOriginTypeEnum.values()) {
            if (sexTypeEnum.getValue().intValue()==value) {
                return sexTypeEnum.getDesc();
            }
        }
        return null;
    }
}
